package com.shang.core.base;

/**
 * Created by shangwei2009@hotmail.com on 2021/9/15 15:29
 */
public abstract class VariableMeta extends Meta {

    /**
     * @param fieldName  域名
     * @param metaLength 附加位字节数
     * @param lengthType 域长度类型（valueLength代表字符or字节），对metaLength无影响
     */
    protected VariableMeta(String fieldName, Integer metaLength, LengthType lengthType) {
        super(fieldName, metaLength, null, lengthType);
    }

    @Override
    protected abstract Integer valueLength(String metaStr);
}
